//
//  SISSObtainEvidenceEnrollViewModel.m
//  SISSAPP
//
//  Created by 袁应荣 on 2018/10/31.
//  Copyright © 2018年 优房网. All rights reserved.
//

#import "SISSObtainEvidenceEnrollViewModel.h"

@implementation SISSObtainEvidenceEnrollViewModel

- (NSString *)plistName {
    return @"ObtainEvidenceEnrollInfoArray";
}


- (UIView *)getViewHeaderInSection:(NSInteger)section {
    
    SISSBaseView *headerView = [[SISSBaseView alloc] init];
    headerView.backgroundColor = [UIColor groupTableViewBackgroundColor];
    UILabel *label = [[UILabel alloc] init];
    label.textColor = COLOR(0x334A60);
    label.font = [UIFont systemFontOfSize:16];
    [headerView addSubview:label];
    
    CGFloat margin = 8.0;
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(headerView).offset(2 * margin);
        make.centerY.equalTo(headerView);
    }];
    
    NSArray *headerTextArr = @[@"取证时间", @"担保公司注销抵押登记", @"注意事项"];
    
    label.text = headerTextArr[section];
    
    return headerView;
}


- (CGFloat)getHeightForHeaderInSection:(NSInteger)section {
    return 44;
}

- (SISSObtainEvidenceEnrollModel *)dataArrToObtainEvidenceEnrollModel {
    SISSObtainEvidenceEnrollModel *model = [[SISSObtainEvidenceEnrollModel alloc] init];
    model.bank = self.dataArr[0][0].rightStr;
    model.address = self.dataArr[0][2].rightStr;
    model.mortgage = self.dataArr[1][0].rightStr;
    model.attention = self.dataArr[1][1].rightStr;
    model.otherdesc = self.dataArr[2][0].rightStr;
    return model;
}

@end
